package com.four.service.impl;

import com.four.entity.NewKinds;
import com.four.mapper.NewKindsMapper;
import com.four.service.NewsKindsService;
import com.four.vo.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author: WangPeng
 * @createTime: 2022/10/17 21:55
 * @description:
 * @version: v1.0
 */
@Service
public class NewsKindsServiceImpl implements NewsKindsService {

    @Autowired
    private NewKindsMapper newKindsMapper;

    @Override
    public Result selelctAll() {
        List<NewKinds> kinds = newKindsMapper.selectAll();
        return new Result(200,"查询成功",kinds);
    }
}
